// 定义状态机对象
import Vue from 'vue'
import Vuex from 'vuex'
import count from './count'
import goods from './goods'
import cart from './cart'
import address from './address'
import my from './my'

Vue.use(Vuex)

const store = new Vuex.Store({
    modules:{
        'count':count, //前面的count将这位该模块的名称
        goods,
        cart,
        address,
        my
    }
})

export default store